﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: ShoppingCartsEntity.cs
// 修改时间：2020-9-8 10:40:09
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：ShoppingCarts 的实体类.
	/// </summary>
	[Table("ShoppingCarts")]
	public partial class ShoppingCartsEntity
	{
		#region Properties
		private int? _cartItemID = 0;
		/// <summary>
		/// 项目ID(主键)(自增长)
		/// </summary>
		[Column("CartItemID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? CartItemID
		{
			get {return _cartItemID;}
			set {_cartItemID = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 用户名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private System.String _cartID = string.Empty;
		/// <summary>
		/// 购物车ID
		/// </summary>
		[Column("CartID",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CartID
		{
			get {return _cartID;}
			set {_cartID = value;}
		}
		
		private int? _productID = 0;
		/// <summary>
		/// 商品ID
		/// </summary>
		[Column("ProductID",TypeName="int")]
		public int? ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}
		
		private int? _quantity = 0;
		/// <summary>
		/// 订购数量
		/// </summary>
		[Column("Quantity",TypeName="int")]
		public int? Quantity
		{
			get {return _quantity;}
			set {_quantity = value;}
		}
		
		private System.Boolean _isPresent = false;
		/// <summary>
		/// 赠品ID
		/// </summary>
		[Column("IsPresent",TypeName="bit")]
		public System.Boolean IsPresent
		{
			get {return _isPresent;}
			set {_isPresent = value;}
		}
		
		private DateTime? _updateTime = null;
		/// <summary>
		/// 更新时间
		/// </summary>
		[Column("UpdateTime",TypeName="datetime")]
		public DateTime? UpdateTime
		{
			get {return _updateTime;}
			set {_updateTime = value;}
		}
		
		private System.String _tableName = string.Empty;
		/// <summary>
		/// 商品表名
		/// </summary>
		[Column("TableName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TableName
		{
			get {return _tableName;}
			set {_tableName = value;}
		}
		
		private System.String _property = string.Empty;
		/// <summary>
		/// 商品属性
		/// </summary>
		[Column("Property",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Property
		{
			get {return _property;}
			set {_property = value;}
		}
		
		private int? _informResult = 0;
		/// <summary>
		/// 短信通知结果
		/// </summary>
		[Column("InformResult",TypeName="int")]
		public int? InformResult
		{
			get {return _informResult;}
			set {_informResult = value;}
		}
		
		private int? _belongsToProductID = 0;
		/// <summary>
		/// 关联商品编号
		/// </summary>
		[Column("BelongsToProductID",TypeName="int")]
		public int? BelongsToProductID
		{
			get {return _belongsToProductID;}
			set {_belongsToProductID = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Remark",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		private int? _deadline = 0;
		/// <summary>
		/// 分期期限
		/// </summary>
		[Column("Deadline",TypeName="int")]
		public int? Deadline
		{
			get {return _deadline;}
			set {_deadline = value;}
		}
		
		private decimal? _downPayment = 0;
		/// <summary>
		/// 首付金额
		/// </summary>
		[Column("DownPayment",TypeName="money")]
		public decimal? DownPayment
		{
			get {return _downPayment;}
			set {_downPayment = value;}
		}
		
		#endregion
	}
}
